package com.rem.designPattern.adapter适配器.objectAdapter;

/**
 * @author Rem
 * @date 2022-11-16
 */
public class Phone {

    public void charing(IVoltage5V iVoltage5V) {
        if (iVoltage5V.output5V() == 5) {
            System.out.println("电压=5伏，正在充电~");
        } else {
            System.out.println("电压!=5伏，无法充电~");
        }
    }
}